package demo;

import java.io.File;

public class FileSeparator {
    public static void main(String[] args) {
        File f = new File("E:" + File.separator + "hello.txt");
        if (f.exists()) {
            boolean result = f.delete();
            if (result) {
                System.out.println("文件删除成功");
            } else {
                System.out.println("文件删除失败");
            }
        }
    }
}
